$(function() {
	// run the currently selected effect
	function showDescription() {

		// most effect types need no options passed by default
		var options = {direction: "right"};
		$( "#hidetext_swf" ).show().fadeIn();
		// run the effect
		$( "#text_padding_swf" ).show( "slide", options, 500, callback );				
	};

	//callback function to bring a hidden box back
	function callback() {
		setTimeout(function() {
			$( "#viewlink:visible" ).removeAttr( "style" ).fadeOut();
		}, 500 );
	};

	// set effect from select menu value
	$( "#viewlink" ).click(function() {
		showDescription();
		return false;
	});

});